﻿using IceCS.DesignPattern.Core.AbstractFactoryPattern.KFC.Foods;
using IceCS.DesignPattern.Core.AbstractFactoryPattern.KFC.Foods.KFCInChina;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IceCS.DesignPattern.Core.AbstractFactoryPattern.KFC.Factories
{
    /// <summary>
    /// 中国KFC工厂
    /// </summary>
    public class ChinaKFCFactory : IKFCFactory
    {
        public BeverageBase CreateBeverage(int type)
        {
            switch (type)
            {
                case 0:
                    return new ChinaPepsiCola();
                case 1:
                    return new ChinaCocaCola();
                default:
                    return new ChinaCocaCola();
            }
        }

        public ChickenWingBase CreateChickenWings()
        {
            return new ChinaChickenWing();
        }

        public FrenchFriesBase CreateFrenchFries()
        {
            return new ChinaFrenchFries();
        }

        public HamburgerBase CreateHamburger()
        {
            return new ChinaHamburger();
        }
    }
}
